/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.paris5.master2.guitarmaster.bean;

/**
 *
 * @author mourad
 */
public class EcomStore implements EcomBean {
    
    private Integer idStore;
    private String adresse;
    private String name;
    private Integer latitude;
    private Integer longetude;
    private EcomCountry code;
    private Float balance;

    public String getAdresse() {
        return adresse;
    }

    public EcomCountry getCode() {
        return code;
    }

    public Integer getIdStore() {
        return idStore;
    }

    public Integer getLatitude() {
        return latitude;
    }

    public Integer getLongetude() {
        return longetude;
    }

    public String getName() {
        return name;
    }

    public Float getBalance() {
        return balance;
    }

    public void setBalance(Float balance) {
        this.balance = balance;
    }

    public void setAdresse(String adresse) {
        this.adresse = adresse;
    }

    public void setCode(EcomCountry code) {
        this.code = code;
    }

    public void setIdStore(Integer idStore) {
        this.idStore = idStore;
    }

    public void setLatitude(Integer latitude) {
        this.latitude = latitude;
    }

    public void setLongetude(Integer longetude) {
        this.longetude = longetude;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EcomStore other = (EcomStore) obj;
        if (this.idStore != other.idStore && (this.idStore == null || !this.idStore.equals(other.idStore))) {
            return false;
        }
        if ((this.adresse == null) ? (other.adresse != null) : !this.adresse.equals(other.adresse)) {
            return false;
        }
        if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) {
            return false;
        }
        if (this.latitude != other.latitude && (this.latitude == null || !this.latitude.equals(other.latitude))) {
            return false;
        }
        if (this.longetude != other.longetude && (this.longetude == null || !this.longetude.equals(other.longetude))) {
            return false;
        }
        if (this.code != other.code && (this.code == null || !this.code.equals(other.code))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "EcomStore{" + "idStore=" + idStore + ", adresse=" + adresse + ", name=" + name + ", latitude=" + latitude + ", longetude=" + longetude + ", code=" + code + '}';
    }
}
